package com.dhecp.project.app.service.impl;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dhecp.project.app.mapper.ModuleDataMapper;
import com.dhecp.project.app.service.ModuleDataService;

/**
 * 获取指定单据数据
 * @author DH-Xxj
 * @version 2020年9月1日
 */
@Service
public class ModuleDataServiceImpl implements ModuleDataService {

    private static final Logger log = LoggerFactory.getLogger(ModuleDataServiceImpl.class);
    
    @Autowired
    private ModuleDataMapper moduleDataMapper;

    
	/**
	 * 通过nid获取指定单据的主要信息
	 * @param nid 必要参数：单据nid
	 * @param moduleTable 必要参数：单据功能唯一标识
	 * @return Map
	 * @author DH-Xxj
	 */
    @Override
    public Map<String, Object> queryModulePrimaryDataByNid(Map<String, Object> params) {
        return moduleDataMapper.findModulePrimaryDataByNid(params);
    }

    
}
